-- GENERATED SPELL FOR [Overlook Sentry] --


function spell0_28840(pUnit, Event) --@Rune Detonation,Self--
pUnit:FullCastSpellOnTarget(55030,pUnit)
pUnit:RegisterEvent('Sorts_28840', 4000, 1)
end

function Sorts_28840(pUnit, Event)
local choix_sorts_28840 = math.random(0, 0)
if choix_sorts_28840 == 0 then
pUnit:RegisterEvent('spell0_28840', 1, 1)
end
end

function mob28840_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28840', math.random(1500, 3000), 1)
end

function mob28840_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28840_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28840_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28840, 1, 'mob28840_Action')
RegisterUnitEvent(28840, 2, 'mob28840_Leave')
RegisterUnitEvent(28840, 3, 'mob28840_Kill')
RegisterUnitEvent(28840, 4, 'mob28840_Die')
